<%= form_with(model: upload, builder: Polaris::FormBuilder) do |form| %>
  <%= polaris_form_layout do |form_layout| %>
    <% form_layout.with_item do %>
      <%= form.polaris_dropzone :file_one, multiple: false %>
    <% end %>
    <% form_layout.with_item do %>
      <%= polaris_button(submit: true) { "Submit" } %>
    <% end %>
  <% end %>
<% end %>

<%= polaris_spacer(vertical: :base) %>

<%= form_with(model: upload, builder: Polaris::FormBuilder) do |form| %>
  <%= polaris_form_layout do |form_layout| %>
    <% form_layout.with_item do %>
      <%# With direct upload in ActiveStorage %>
      <%= polaris_stack do |stack| %>
        <% stack.with_item do %>
          <%= form.polaris_dropzone :attachment_one, size: :small, multiple: false, direct_upload: true %>
        <% end %>
        <% stack.with_item do %>
          <%= form.polaris_dropzone :attachment_two, size: :small, multiple: false, direct_upload: true %>
        <% end %>
      <% end %>
    <% end %>
    <% form_layout.with_item do %>
      <%= polaris_button(submit: true) { "Submit" } %>
    <% end %>
  <% end %>
<% end %>
